package com.it.service.impl;

import com.it.mapper.MyPetMapper;
import com.it.pojo.MyPet;
import com.it.service.MyPetService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MyPetServiceImpl implements MyPetService {
    @Resource
    MyPetMapper myPetMapper;
    @Override
    public List<MyPet> findPetAll() {
        return myPetMapper.findPetAll();
    }

    @Override
    public MyPet findPetOne(Integer id) {
        return myPetMapper.findPetOne(id);
    }
}
